---
layout: page 
title : ARCHIVES
title_ch : 文章归档
description: "文章归档 | 日期排列"
header-img: "img/archives-bg.jpg"
---

	{% for post in site.posts  %}
		{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
		{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
		{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
		{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
	
		{% if forloop.first %}
		<legend style="color:#0085A1;" id="{{this_year}}-{{this_month}}"><i class="fa fa-calendar" aria-hidden="true"></i>&nbsp;{{this_year}} {{this_month}}</legend>
		<ul>
		{% endif %}
	
		<li><span>{{ post.date | date: "%F" }}</span> &raquo; <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
	
		{% if forloop.last %}
		</ul>
		{% else %}
		{% if this_year != next_year %}
			</ul>

			<legend style="color:#0085A1;" id="{{next_year}}-{{next_month}}"><i class="fa fa-calendar" aria-hidden="true"></i>&nbsp;{{next_year}} {{next_month}}</legend>
			<ul>
		{% else %}    
			{% if this_month != next_month %}
			</ul>
			<legend style="color:#0085A1;" id="{{next_year}}-{{next_month}}"><i class="fa fa-calendar" aria-hidden="true"></i>&nbsp;{{next_year}} {{next_month}}</legend>
			<ul>
			{% endif %}
			{% endif %}
		{% endif %}
	{% endfor%}
	{% assign posts_collate = nil %}